







<div class="x-body">
    <form class="layui-form form_single" action="{:url()}" method="post">
        <div class="layui-form-item">
            <label  class="layui-form-label">
                用户名
            </label>
            <div class="layui-input-inline">
                <input type="text" id="username" onchange="this.value=this.value.substring(0, 30)" onkeydown="this.value=this.value.substring(0, 30)" onkeyup="this.value=this.value.substring(0, 30)" name="username" value="{$info['username']|default=''}"
                       autocomplete="off" class="layui-input" >
            </div>
            <div class="layui-form-mid layui-word-aux">

            </div>

        </div>


        <div class="layui-form-item">
            <label for="logo" class="layui-form-label">
                <span class="x-red">*</span>会员头像
            </label>
            <div id="logo" class="layui-input-block">
                {assign name="cover_id" value="$info.cover_id|default='0'" /}
                {:widget('file/index', ['name' => 'cover_id', 'value' => $cover_id, 'type' => 'img'])}
            </div>
            <!--<div class="layui-form-mid layui-word-aux">-->
            <!--(请上传单张封面图片)-->
            <!--</div>-->
        </div>
        <div class="layui-form-item">
            <label for="password" class="layui-form-label">
                密码
            </label>
            <div class="layui-input-inline">
                <input type="password" id="password" name="password"
                       autocomplete="off" class="layui-input" value="123456">
            </div>
            <div class="layui-form-mid layui-word-aux">
                (用户密码,不能小于6位)
            </div>
        </div>
        <div class="layui-form-item">
            <label for="pin_password" class="layui-form-label">
                支付密码
            </label>
            <div class="layui-input-inline">
                <input type="password" id="pin_password" name="pin_password"
                       autocomplete="off" class="layui-input" value="123456">
            </div>
            <div class="layui-form-mid layui-word-aux">
                (支付密码，用于支付等安全操作)
            </div>
        </div>
        <div class="layui-form-item">
            <label for="pid" class="layui-form-label">
                <span class="x-red">*</span>区号
            </label>
            <div class="layui-input-inline">
                <select id="pid" name="category_id">
                    {volist name='area' id='vo'}

                    <option value="{$vo.mobile_prefix}" >{$vo.mobile_prefix} {$vo.country}</option>
                    {/volist}
                </select>
            </div>
            <div class="layui-form-mid layui-word-aux">
                (区号)
            </div>

        </div>
        <div class="layui-form-item">
            <label for="mobile" class="layui-form-label">
                手机号
            </label>
            <div class="layui-input-inline">
                <input type="text" id="mobile" name="mobile" value="{$info['mobile']|default=''}"
                       autocomplete="off" class="layui-input">
            </div>
            <div class="layui-form-mid layui-word-aux">
                (手机号)
            </div>
        </div>
        <div class="layui-form-item">
            <label for="leader" class="layui-form-label">
                推荐人
            </label>
            <div class="layui-input-inline">
                <input type="text" id="leader" name="leader"
                       autocomplete="off" class="layui-input">
            </div>
            <div class="layui-form-mid layui-word-aux">
                (推荐人)
            </div>
        </div>



        <div class="layui-form-item">
            <label  class="layui-form-label">
                是否公司账户
            </label>
            <div class="layui-input-inline">
                <input type="checkbox" name="is_company" value="1" lay-skin="switch"   lay-text="是|否">
            </div>
        </div>
        <!--<div class="layui-form-item">-->
        <!--<label for="describe" class="layui-form-label">-->
        <!--描述-->
        <!--</label>-->
        <!--<div class="layui-input-inline">-->
        <!--<textarea id="describe" class="layui-textarea" name="describe" maxlength="80" onchange="this.value=this.value.substring(0, 80)" onkeydown="this.value=this.value.substring(0, 80)" onkeyup="this.value=this.value.substring(0, 80)"    rows="3" placeholder="请输入文章描述信息/简介">{$info['describe']|default=''}</textarea>-->
        <!--</div>-->
        <!--<div class="layui-form-mid layui-word-aux">-->
        <!--(文章描述信息/简介)-->
        <!--</div>-->
        <!--</div>-->

        <div class="box-footer">

            <input type="hidden" name="id" value="{$info['id']|default='0'}"/>

            {include file="layout/edit_btn_group"/}

        </div>

    </form>
</div>



<script type="text/javascript">
    layui.use('laydate', function(){
        var laydate = layui.laydate;

        //执行一个laydate实例
        laydate.render({
            elem: '#bonus_time' //指定元素
        });


    });

    ob.setValue("is_hide", {$info.is_hide|default=0});
    ob.setValue("is_shortcut", {$info.is_shortcut|default=0});
    ob.setValue("pid", {$info.pid|default=0});

</script>
